package com.example.user.service;
import com.alibaba.boot.dubbo.annotation.DubboConsumer;
import com.example.service.RpcTokenService;
import com.example.vo.TokenVO;
import org.springframework.stereotype.Component;
/**
 * Created by LENOVO on 2018/9/22.
 */
@Component
public class TokenServiceImpl implements TokenService {

    @DubboConsumer
    private RpcTokenService rpcTokenService;
    @Override
    public TokenVO verifyToken(String agent, String token) throws Exception {

        return  rpcTokenService.verifyToken(agent,token);
    }
}
